const fs = require("fs")


function readHosts(){
    return fs.readFileSync("C:\\Windows\\System32\\drivers\\etc\\hosts",'utf-8')
}

function writeHosts(data){
    fs.writeFileSync("E:\\hosts.txt",data)
}

module.exports={
    readHosts,
    writeHosts
}